package Weapons;
/**
 * This class represents a Scattergun in the game.
 * The scattergun acts as a Shotgun only that it scatters
 * bullets at an angle of 360 degrees, thus firing in all directions.
 * @author Sebastian Isheden and Victor Beer
 *
 */
public class ScatterGun extends Shotgun{

	/**
	 * Creates a Scattergun with given parameters. The scattergun acts precisely
	 * as a shotgun would, only with the spread set to 360 degrees(Thus firing in all directions).
	 * @param fireRate	The amount of times this weapon can fire per second.
	 * @param damage  The damage per shot of this weapon.
	 * @param bulletSpeed  The speed the fired bullets will traverse the screen.
	 * @param numBullets
	 * @param fadeDistance
	 */
	public ScatterGun(float fireRate, float damage, float bulletSpeed, float numBullets,float fadeDistance){
		super(fireRate, damage, bulletSpeed,numBullets, 360,fadeDistance);
	}
	/**
	 * Returns a copy of the scattergun.
	 */
	@Override
	public ScatterGun copy(){
		return new ScatterGun(1/this.fireInterval,this.damage,this.bulletSpeed,this.numberOfBullets,this.fadeDistance);
	}
}
